const proxy = require('http-proxy-middleware');

module.exports = function(app) {  
    app.use(proxy('/AllLinks', {    
        // target: 'http://121.37.145.72:8630/', //巨霸系统 
             // ws: 'ws://121.37.145.72:8630/'
             target: `http//${document.location.host}/AllLinks`, //巨霸系统 
            ws: `ws//${document.location.host}/AllLinks`, //巨霸系统
           }));  
    app.use(proxy('/*.svg', { target: 'http://localhost:5000/' }));
};